<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Class: ActiveRecord::ConnectionAdapters::Table</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
  <script type="text/javascript">
  // <![CDATA[

  function popupCode( url ) {
    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  }

  function toggleCode( id ) {
    if ( document.getElementById )
      elem = document.getElementById( id );
    else if ( document.all )
      elem = eval( "document.all." + id );
    else
      return false;

    elemStyle = elem.style;
    
    if ( elemStyle.display != "block" ) {
      elemStyle.display = "block"
    } else {
      elemStyle.display = "none"
    }

    return true;
  }
  
  // Make codeblocks hidden by default
  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
  
  // ]]>
  </script>

</head>
<body>



    <div id="classHeader">
        <table class="header-table">
        <tr class="top-aligned-row">
          <td><strong>Class</strong></td>
          <td class="class-name-in-header">ActiveRecord::ConnectionAdapters::Table</td>
        </tr>
        <tr class="top-aligned-row">
            <td><strong>In:</strong></td>
            <td>
                <a href="../../../files/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions_rb.html">
                vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
                </a>
        <br />
            </td>
        </tr>

        <tr class="top-aligned-row">
            <td><strong>Parent:</strong></td>
            <td>
                <a href="../../Object.html">
                Object
               </a>
            </td>
        </tr>
        </table>
    </div>
  <!-- banner header -->

  <div id="bodyContent">



  <div id="contextContent">

    <div id="description">
      <p>
Represents a SQL table in an abstract way for updating a table. Also see <a
href="TableDefinition.html">TableDefinition</a> and <a
href="SchemaStatements.html#M001419">SchemaStatements#create_table</a>
</p>
<p>
Available transformations are:
</p>
<pre>
  change_table :table do |t|
    t.column
    t.index
    t.timestamps
    t.change
    t.change_default
    t.rename
    t.references
    t.belongs_to
    t.string
    t.text
    t.integer
    t.float
    t.decimal
    t.datetime
    t.timestamp
    t.time
    t.date
    t.binary
    t.boolean
    t.remove
    t.remove_references
    t.remove_belongs_to
    t.remove_index
    t.remove_timestamps
  end
</pre>

    </div>


   </div>

    <div id="method-list">
      <h3 class="section-bar">Methods</h3>

      <div class="name-list">
      <a href="#M001506">belongs_to</a>&nbsp;&nbsp;
      <a href="#M001499">change</a>&nbsp;&nbsp;
      <a href="#M001500">change_default</a>&nbsp;&nbsp;
      <a href="#M001496">column</a>&nbsp;&nbsp;
      <a href="#M001497">index</a>&nbsp;&nbsp;
      <a href="#M001495">new</a>&nbsp;&nbsp;
      <a href="#M001505">references</a>&nbsp;&nbsp;
      <a href="#M001501">remove</a>&nbsp;&nbsp;
      <a href="#M001508">remove_belongs_to</a>&nbsp;&nbsp;
      <a href="#M001502">remove_index</a>&nbsp;&nbsp;
      <a href="#M001507">remove_references</a>&nbsp;&nbsp;
      <a href="#M001503">remove_timestamps</a>&nbsp;&nbsp;
      <a href="#M001504">rename</a>&nbsp;&nbsp;
      <a href="#M001498">timestamps</a>&nbsp;&nbsp;
      </div>
    </div>

  </div>


    <!-- if includes -->

    <div id="section">





      


    <!-- if method_list -->
    <div id="methods">
      <h3 class="section-bar">Public Class methods</h3>

      <div id="method-M001495" class="method-detail">
        <a name="M001495"></a>

        <div class="method-heading">
          <a href="#M001495" class="method-signature">
          <span class="method-name">new</span><span class="method-args">(table_name, base)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M001495-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M001495-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 551</span>
551:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">table_name</span>, <span class="ruby-identifier">base</span>)
552:         <span class="ruby-ivar">@table_name</span> = <span class="ruby-identifier">table_name</span>
553:         <span class="ruby-ivar">@base</span> = <span class="ruby-identifier">base</span>
554:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <h3 class="section-bar">Public Instance methods</h3>

      <div id="method-M001506" class="method-detail">
        <a name="M001506"></a>

        <div class="method-heading">
          <span class="method-name">belongs_to</span><span class="method-args">(*args)</span>
        </div>
      
        <div class="method-description">
          <p>
Alias for <a href="Table.html#M001505">references</a>
</p>
        </div>
      </div>

      <div id="method-M001499" class="method-detail">
        <a name="M001499"></a>

        <div class="method-heading">
          <a href="#M001499" class="method-signature">
          <span class="method-name">change</span><span class="method-args">(column_name, type, options = {})</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Changes the <a href="Table.html#M001496">column</a>&#8216;s definition
according to the <a href="Table.html#M001495">new</a> options. See <a
href="TableDefinition.html#M001480">TableDefinition#column</a> for details
of the options you can use.
</p>
<h5>Examples</h5>
<pre>
 t.change(:name, :string, :limit =&gt; 80)
 t.change(:description, :text)
</pre>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M001499-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M001499-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 591</span>
591:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">change</span>(<span class="ruby-identifier">column_name</span>, <span class="ruby-identifier">type</span>, <span class="ruby-identifier">options</span> = {})
592:         <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">change_column</span>(<span class="ruby-ivar">@table_name</span>, <span class="ruby-identifier">column_name</span>, <span class="ruby-identifier">type</span>, <span class="ruby-identifier">options</span>)
593:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M001500" class="method-detail">
        <a name="M001500"></a>

        <div class="method-heading">
          <a href="#M001500" class="method-signature">
          <span class="method-name">change_default</span><span class="method-args">(column_name, default)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Sets a <a href="Table.html#M001495">new</a> default value for a <a
href="Table.html#M001496">column</a>. See <a
href="SchemaStatements.html#M001427">SchemaStatements#change_column_default</a>
</p>
<h5>Examples</h5>
<pre>
 t.change_default(:qualification, 'new')
 t.change_default(:authorized, 1)
</pre>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M001500-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M001500-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 599</span>
599:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">change_default</span>(<span class="ruby-identifier">column_name</span>, <span class="ruby-identifier">default</span>)
600:         <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">change_column_default</span>(<span class="ruby-ivar">@table_name</span>, <span class="ruby-identifier">column_name</span>, <span class="ruby-identifier">default</span>)
601:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M001496" class="method-detail">
        <a name="M001496"></a>

        <div class="method-heading">
          <a href="#M001496" class="method-signature">
          <span class="method-name">column</span><span class="method-args">(column_name, type, options = {})</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Adds a <a href="Table.html#M001495">new</a> <a
href="Table.html#M001496">column</a> to the named table. See <a
href="TableDefinition.html#M001480">TableDefinition#column</a> for details
of the options you can use.
</p>
<h5>Example</h5>
<h6>Creating a simple <a href="Table.html#M001496">column</a></h6>
<pre>
 t.column(:name, :string)
</pre>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M001496-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M001496-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 561</span>
561:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">column</span>(<span class="ruby-identifier">column_name</span>, <span class="ruby-identifier">type</span>, <span class="ruby-identifier">options</span> = {})
562:         <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">add_column</span>(<span class="ruby-ivar">@table_name</span>, <span class="ruby-identifier">column_name</span>, <span class="ruby-identifier">type</span>, <span class="ruby-identifier">options</span>)
563:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M001497" class="method-detail">
        <a name="M001497"></a>

        <div class="method-heading">
          <a href="#M001497" class="method-signature">
          <span class="method-name">index</span><span class="method-args">(column_name, options = {})</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Adds a <a href="Table.html#M001495">new</a> <a
href="Table.html#M001497">index</a> to the table. <tt>column_name</tt> can
be a single Symbol, or an Array of Symbols. See <a
href="SchemaStatements.html#M001429">SchemaStatements#add_index</a>
</p>
<h5>Examples</h5>
<h6>Creating a simple <a href="Table.html#M001497">index</a></h6>
<pre>
 t.index(:name)
</pre>
<h6>Creating a unique <a href="Table.html#M001497">index</a></h6>
<pre>
 t.index([:branch_id, :party_id], :unique =&gt; true)
</pre>
<h6>Creating a named <a href="Table.html#M001497">index</a></h6>
<pre>
 t.index([:branch_id, :party_id], :unique =&gt; true, :name =&gt; 'by_branch_party')
</pre>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M001497-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M001497-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 575</span>
575:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">index</span>(<span class="ruby-identifier">column_name</span>, <span class="ruby-identifier">options</span> = {})
576:         <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">add_index</span>(<span class="ruby-ivar">@table_name</span>, <span class="ruby-identifier">column_name</span>, <span class="ruby-identifier">options</span>)
577:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M001505" class="method-detail">
        <a name="M001505"></a>

        <div class="method-heading">
          <a href="#M001505" class="method-signature">
          <span class="method-name">references</span><span class="method-args">(*args)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Adds a reference. Optionally adds a <tt>type</tt> <a
href="Table.html#M001496">column</a>. <tt><a
href="Table.html#M001505">references</a></tt> and <tt><a
href="Table.html#M001506">belongs_to</a></tt> are acceptable.
</p>
<h5>Examples</h5>
<pre>
 t.references(:goat)
 t.references(:goat, :polymorphic =&gt; true)
 t.belongs_to(:goat)
</pre>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M001505-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M001505-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 646</span>
646:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">references</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
647:         <span class="ruby-identifier">options</span> = <span class="ruby-identifier">args</span>.<span class="ruby-identifier">extract_options!</span>
648:         <span class="ruby-identifier">polymorphic</span> = <span class="ruby-identifier">options</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">:polymorphic</span>)
649:         <span class="ruby-identifier">args</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">col</span><span class="ruby-operator">|</span>
650:           <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">add_column</span>(<span class="ruby-ivar">@table_name</span>, <span class="ruby-node">&quot;#{col}_id&quot;</span>, <span class="ruby-identifier">:integer</span>, <span class="ruby-identifier">options</span>)
651:           <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">add_column</span>(<span class="ruby-ivar">@table_name</span>, <span class="ruby-node">&quot;#{col}_type&quot;</span>, <span class="ruby-identifier">:string</span>, <span class="ruby-identifier">polymorphic</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>) <span class="ruby-operator">?</span> <span class="ruby-identifier">polymorphic</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">options</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">polymorphic</span>.<span class="ruby-identifier">nil?</span>
652:         <span class="ruby-keyword kw">end</span>
653:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M001501" class="method-detail">
        <a name="M001501"></a>

        <div class="method-heading">
          <a href="#M001501" class="method-signature">
          <span class="method-name">remove</span><span class="method-args">(*column_names)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Removes the <a href="Table.html#M001496">column</a>(s) from the table
definition.
</p>
<h5>Examples</h5>
<pre>
 t.remove(:qualification)
 t.remove(:qualification, :experience)
</pre>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M001501-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M001501-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 607</span>
607:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">column_names</span>)
608:         <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">remove_column</span>(<span class="ruby-ivar">@table_name</span>, <span class="ruby-identifier">column_names</span>)
609:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M001508" class="method-detail">
        <a name="M001508"></a>

        <div class="method-heading">
          <span class="method-name">remove_belongs_to</span><span class="method-args">(*args)</span>
        </div>
      
        <div class="method-description">
          <p>
Alias for <a href="Table.html#M001507">remove_references</a>
</p>
        </div>
      </div>

      <div id="method-M001502" class="method-detail">
        <a name="M001502"></a>

        <div class="method-heading">
          <a href="#M001502" class="method-signature">
          <span class="method-name">remove_index</span><span class="method-args">(options = {})</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Removes the given <a href="Table.html#M001497">index</a> from the table.
</p>
<h5>Examples</h5>
<h6>Remove the suppliers_name_index in the suppliers table</h6>
<pre>
  t.remove_index :name
</pre>
<h6>Remove the <a href="Table.html#M001497">index</a> named accounts_branch_id_index in the accounts table</h6>
<pre>
  t.remove_index :column =&gt; :branch_id
</pre>
<h6>Remove the <a href="Table.html#M001497">index</a> named accounts_branch_id_party_id_index in the accounts table</h6>
<pre>
  t.remove_index :column =&gt; [:branch_id, :party_id]
</pre>
<h6>Remove the <a href="Table.html#M001497">index</a> named by_branch_party in the accounts table</h6>
<pre>
  t.remove_index :name =&gt; :by_branch_party
</pre>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M001502-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M001502-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 622</span>
622:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove_index</span>(<span class="ruby-identifier">options</span> = {})
623:         <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">remove_index</span>(<span class="ruby-ivar">@table_name</span>, <span class="ruby-identifier">options</span>)
624:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M001507" class="method-detail">
        <a name="M001507"></a>

        <div class="method-heading">
          <a href="#M001507" class="method-signature">
          <span class="method-name">remove_references</span><span class="method-args">(*args)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Removes a reference. Optionally removes a <tt>type</tt> <a
href="Table.html#M001496">column</a>. <tt><a
href="Table.html#M001507">remove_references</a></tt> and <tt><a
href="Table.html#M001508">remove_belongs_to</a></tt> are acceptable.
</p>
<h5>Examples</h5>
<pre>
 t.remove_references(:goat)
 t.remove_references(:goat, :polymorphic =&gt; true)
 t.remove_belongs_to(:goat)
</pre>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M001507-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M001507-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 662</span>
662:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove_references</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">args</span>)
663:         <span class="ruby-identifier">options</span> = <span class="ruby-identifier">args</span>.<span class="ruby-identifier">extract_options!</span>
664:         <span class="ruby-identifier">polymorphic</span> = <span class="ruby-identifier">options</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">:polymorphic</span>)
665:         <span class="ruby-identifier">args</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">col</span><span class="ruby-operator">|</span>
666:           <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">remove_column</span>(<span class="ruby-ivar">@table_name</span>, <span class="ruby-node">&quot;#{col}_id&quot;</span>)
667:           <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">remove_column</span>(<span class="ruby-ivar">@table_name</span>, <span class="ruby-node">&quot;#{col}_type&quot;</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">polymorphic</span>.<span class="ruby-identifier">nil?</span>
668:         <span class="ruby-keyword kw">end</span>
669:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M001503" class="method-detail">
        <a name="M001503"></a>

        <div class="method-heading">
          <a href="#M001503" class="method-signature">
          <span class="method-name">remove_timestamps</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Removes the timestamp columns (created_at and updated_at) from the table.
</p>
<h5>Example</h5>
<pre>
 t.remove_timestamps
</pre>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M001503-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M001503-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 629</span>
629:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove_timestamps</span>
630:         <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">remove_timestamps</span>(<span class="ruby-ivar">@table_name</span>)
631:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M001504" class="method-detail">
        <a name="M001504"></a>

        <div class="method-heading">
          <a href="#M001504" class="method-signature">
          <span class="method-name">rename</span><span class="method-args">(column_name, new_column_name)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Renames a <a href="Table.html#M001496">column</a>.
</p>
<h5>Example</h5>
<pre>
 t.rename(:description, :name)
</pre>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M001504-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M001504-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 636</span>
636:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rename</span>(<span class="ruby-identifier">column_name</span>, <span class="ruby-identifier">new_column_name</span>)
637:         <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">rename_column</span>(<span class="ruby-ivar">@table_name</span>, <span class="ruby-identifier">column_name</span>, <span class="ruby-identifier">new_column_name</span>)
638:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M001498" class="method-detail">
        <a name="M001498"></a>

        <div class="method-heading">
          <a href="#M001498" class="method-signature">
          <span class="method-name">timestamps</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p>
Adds <a href="Table.html#M001498">timestamps</a> (created_at and
updated_at) columns to the table. See <a
href="SchemaStatements.html#M001436">SchemaStatements#add_timestamps</a>
</p>
<h5>Example</h5>
<pre>
 t.timestamps
</pre>
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M001498-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M001498-source">
<pre>
     <span class="ruby-comment cmt"># File vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 582</span>
582:       <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">timestamps</span>
583:         <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">add_timestamps</span>(<span class="ruby-ivar">@table_name</span>)
584:       <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>


    </div>


  </div>


<div id="validator-badges">
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>

</body>
</html>